<template>
  <NewMianModule :title="startT + title" num="05">
    <div class="conent">
      <div class="content_item_wrap mb" v-for="(item, index) in detailListTop" :key="index">
        <div class="content_title top-title_40">{{ item.name }}</div>
        <div class="num_wrap">
          <div class="content_num">{{ item.value }}</div>
          <div class="content_unit">{{ item.util }}</div>
        </div>
      </div>

      <div class="bottom_wrap">
        <div class="content_item_wrap" v-for="(item, index) in detailListBottom" :key="index">
          <div class="content_title top-title_40">{{ item.name }}</div>
          <div class="num_wrap">
            <div class="content_num">{{ parseFloat(item.value).toFixed(2) }}</div>
            <div class="content_unit">{{ item.util }}</div>
          </div>
        </div>
      </div>
    </div>
  </NewMianModule>
</template>

<script>
import NewMianModule from '../../../NewMianModule/index'
//import { rightData } from '../../../right/newOneRight/rightData.js'
export default {
  props: {
    title: {
      type: String,
      default: '',
    },
    startT: {
      type: String,
      default: '',
    },
    qgData: {
      type: Object,
      default: () => {}, // es6的箭头函数
    },
  },
  components: {
    NewMianModule,
  },
  data() {
    return {
      detailListTop: this.qgData['05']['topData'],
      detailListBottom: this.qgData['05']['bottomData'],
    }
  },
}
</script>

<style lang="scss" scoped>
@import '../rightBase.css';
.conent {
  width: 100%;
  height: calc(100% - 20px);
  padding-top: 20px;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
}

.bottom_wrap {
  /*width: calc(100% - 20px);*/
  padding-right: 20px;
  display: flex;
  justify-content: space-between;
}
</style>
